package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/zrpc"
)

type Config struct {
	zrpc.RpcServerConf

	Mysql struct {
		DataSource string
	}

	NfsConf struct {
		StaticUrl        string
		UploadsId        uint64
		PathPrefix       string
		QiniuPrefix      string
		PrivateStorePath string
		PublicStorePath  string
	}

	QiniuConf struct {
		AccessKey     string
		SecretKey     string
		Bucket        string
		Domain        string
		Region        string
		UseHTTPS      bool
		UseCdnDomains bool
		NotifyURL     string
	}

	CacheRedis cache.CacheConf

	KqAttachmentSyncQiniuConf struct {
		Brokers []string
		Topic   string
	}
}
